package com.aier.proxy.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * VideoDevice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "video_device", catalog = "abc")
public class VideoDeviceInfo implements java.io.Serializable {

    // Fields

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private Long vid;
    //设备sn
    private String sn;
    //状态
    private Short state;
    private String stateStr;
    //用户名
    private String user;
    //密码
    private String pwd;
    private String url;
    //设备厂家
    private Short supplier;
    private Integer pid;
    
    //设备ip
    private String ip;
    //设备端口
    private Integer port;
    
    private String supplierStr;
    
    // Constructors

    /** default constructor */
    public VideoDeviceInfo() {
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "vid", unique = true, nullable = false)
    public Long getVid() {
        return this.vid;
    }

    public void setVid(Long vid) {
        this.vid = vid;
    }

    @Column(name = "sn", nullable = false, length = Constant.num_20)
    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    @Column(name = "state", nullable = false)
    public Short getState() {
        return this.state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Short getSupplier() {
        return supplier;
    }

    public void setSupplier(Short supplier) {
        this.supplier = supplier;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    public String getSupplierStr() {
        return supplierStr;
    }

    public void setSupplierStr(String supplierStr) {
        this.supplierStr = supplierStr;
    }

    

}